package com.augurit.gzcgwsp.sendNotice.service;

import java.util.List;
import java.util.Map;
import org.springside.modules.orm.Page;
import com.augurit.common.base.extmodel.BasicCombo;
import com.augurit.common.base.service.ICrudService;
import com.augurit.gzcgwsp.sendNotice.entity.YwWebserviceForWb;
import com.augurit.gzcgwsp.sendNotice.web.form.YwWebserviceForWbForm;

/**
 * 网办（受理、办结），webservice方式交换给方欣
 * @author adm
 *
 */
public interface IYwWebserviceForWbService  extends ICrudService<YwWebserviceForWbForm, Long> {

	/**
	 * 保存webservice接口的信息
	 * @param ywWebserviceInfo
	 */
	public void save(YwWebserviceForWb ywWebserviceForWb);
	
	/**
	 * 当webservice调用成功，则把改记录的isSended字段的值改成1
	 * @param id
	 */
	public void changState(long id);

	/**
	 * 分页查询数据
	 * @param page
	 * @param map
	 * @return
	 */
	public Page<YwWebserviceForWbForm> searchPage(Page<YwWebserviceForWbForm> page,
			Map map);
	
	/**
	 * 获取项目名称
	 */
	public List<BasicCombo> getXmmc();
	
	/**
	 * 获取环节名称
	 */
	public List<BasicCombo> getSphjdmmc();
	
	/**
	 * 设置值和保存YwWebserviceForWb
	 * @param loginusername
	 * @param templateCode
	 * @param masterEntityKey
	 * @param durationExpression
	 * @param link
	 * @param bslyy
	 * @param map
	 */
	public void setValueAndSaveYwWebserviceForWb(String loginusername,String templateCode,String masterEntityKey,
			String durationExpression,String link ,String bslyy,Map<String,String> map);
	
	/**
	 * 交换网办数据（受理、办结）
	 */
	public void exchangeYwWebserviceForWb();
}
